<?php
/**
 * Project:     itoFW: Ito PHP Framework
 * File:        index.php
 *
 * @package itoFW
 * @version 1.0.0
 * @changes none
 */

session_start();
//Apsidraudimas, kad visa info eitu tik per index.php
define('_ito_sys',1);
error_reporting(E_ALL);

//Main system f-unctions
require_once('system/system.php');

/**
 * @var $tpl mix Template engine obj
 */
$tpl = loadIt('lib_smarty');
/**
 * @var $com str Uzkraunamas komponentas is $_GET arba konfiguracijos.
 */
$com = getPubData('get_com') != null ? getPubData('get_com') : getConf('sys_defCom');


$tmp_data = loadIt('com_'.getPubData('get_com')); //uzkraunam komponenta;
$data = $tmp_data->content; //pasiimam is komponento duomenis;

$tpl->assign('content', $data); //priskyrimas templeitui

$tpl->display(getConf('dir_system').'/template/index.tpl'); //pagrindinio templeito isvedimas
	
?>